import request from '../utils/request'

// 分页查询核算单元权重配置
export function listAccountingUnitWeightByPage(params) {
  return request({
    url: '/accountingUnitWeight/listAccountingUnitWeightByPage',
    method: 'post',
    data: params
  })
}

// 周期下拉
export function getAssessmentCyclePull(params) {
  return request({
    url: '/assessmentCycle/getAssessmentCyclePull',
    method: 'get',
    params
  })
}

// 核算单元下拉
export function listAllAccountingUnit(params) {
  return request({
    url: '/sysUser/listAllAccountingUnit',
    method: 'get',
    params
  })
}

// 归档状态
export function isFile(params) {
  return request({
    url: '/accountingUnitWeight/isFile',
    method: 'get',
    params
  })
}

// 编辑核算单元权重
export function updateAccountingUnitWeight(params) {
  return request({
    url: '/accountingUnitWeight/updateAccountingUnitWeight',
    method: 'post',
    data: params
  })
}

// 导出
export function getExport(params) {
  return request({
    url: '/accountingUnitWeight/export',
    method: 'post',
    data: params,
    responseType: 'blob'
  })
}

// 继承核算单元权重
export function inheritAccountingUnitWeight(params) {
  return request({
    url: '/accountingUnitWeight/inheritAccountingUnitWeight',
    method: 'post',
    data: params
  })
}

// 核算单元
export function listAccountingVO(params) {
  return request({
    url: '/accountingUnitWeight/listAccountingVO',
    method: 'get',
    params
  })
}

// 新增
export function saveAccountingUnitWeight(params) {
  return request({
    url: '/accountingUnitWeight/saveAccountingUnitWeight',
    method: 'post',
    data: params
  })
}

// 数据查询-绩效申诉
export function saveOrUpdate(params) {
  return request({
    url: '/workloadAppeal/saveOrUpdate',
    method: 'post',
    data: params
  })
}

// 数据查询-我的申诉
export function listByPage(params) {
  return request({
    url: '/workloadAppeal/listByPage',
    method: 'post',
    data: params
  })
}

// 数据查询-撤销
export function removeById(params) {
  return request({
    url: '/workloadAppeal/removeById',
    method: 'get',
    params
  })
}
